package com.earthea.common.io.excel.listener;

import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@NoArgsConstructor
public class CustomSheetReader<T> extends AbstractReadListener<T> {

    /**
     * excel文件全路径
     */
    private String excelName;

    /**
     * sheet名称
     */
    private String sheetName;

    /**
     * 泛型类型
     */
    private Class<T> clazz;

    public CustomSheetReader(String excelName, String sheetName, Class<T> clazz) {
        this.excelName = excelName;
        this.sheetName = sheetName;
        this.clazz = clazz;
    }

    @Override
    public Class<T> getClazz() {
        return this.clazz;
    }

    @Override
    public String getSheetName() {
        return this.sheetName;
    }

    @Override
    public String getExcelName() {
        return this.excelName;
    }
}
